package cn.getech.data.development.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 表血缘表
 * 
 * @author qiuxinglei
 * @email qiuxinglei@gmail.com
 * @date 2020-12-03 10:20:24
 */
@ApiModel(description = "表血缘表")
@Data
@TableName("bdp_table_relationship")
public class TableRelationshipEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@ApiModelProperty(value = "")
	@TableId
	private Long relationshipId;
	/**
	 * 源表collection_table_info表的id
	 */
	@ApiModelProperty(value = "collection_table_info表的id")
	private Integer sourceCollTableId;
	/**
	 * 源表id
	 */
	@ApiModelProperty(value = "源表id")
	private Integer sourceTableId;
	/**
	 * 源表名称
	 */
	@ApiModelProperty(value = "源表名称")
	private String sourceTableName;
	/**
	 * 源表字段名称
	 */
	@ApiModelProperty(value = "源表字段名称")
	private String sourceFieldName;
	/**
	 * 相关联的表名称
	 */
	@ApiModelProperty(value = "相关联的表名称")
	private String relationTableName;
	/**
	 * 相关联的表描述
	 */
	@ApiModelProperty(value = "相关联的表描述")
	private String relationTableDesc;
	/**
	 * 相关联的表字段名称
	 */
	@ApiModelProperty(value = "相关联的表字段名称")
	private String relationFieldName;
	/**
	 * 相关联的表字段描述
	 */
	@ApiModelProperty(value = "相关联的表字段描述")
	private String relationFieldDesc;
	/**
	 * 相关联的表字段类型
	 */
	@ApiModelProperty(value = "相关联的表字段类型")
	private String relationFieldType;
	/**
	 * 相关联的数据源
	 */
	@ApiModelProperty(value = "相关联的数据源")
	private Integer relationSourceId;
	/**
	 * 相关联的数据库
	 */
	@ApiModelProperty(value = "相关联的数据库")
	private String relationDbname;

	/**
	 * 相关联collection_table_info表的id
	 */
	@ApiModelProperty(value = "collection_table_info表的id")
	private Integer relationCollTableId;

	@ApiModelProperty(value = "相关联的数据源名称")
	@TableField(exist = false)
	private String relationSourceName;

	@TableField("data_type")
	private Integer dataType;
}
